/*
 * Created on 2005-3-14
 */
package com.hd123.rumba.runtime;

import java.io.Serializable;
import java.util.Date;

import com.hd123.rumba.exception.BusinessException;

/**
 * @author caili
 */
public class VersionedPersistent extends Persistent implements Serializable, IVersionedPersistent {
  private long oca;
  private Date lastModified;

  public long getOca() {
    return oca;
  }

  public void setOca(long oca) {
    this.oca = oca;
  }

  public Date getLastModified() {
    return lastModified;
  }

  public void setLastModified(Date lastModified) {
    this.lastModified = lastModified;
  }

  public void assign(IVersionedPersistent obj) throws BusinessException {
    this.setOca(obj.getOca());
    this.setLastModified(obj.getLastModified());
  }
}
